package com.wwj.auction.login.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.auction.login.entity.UserAccount;

import java.math.BigDecimal;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wwj
 * @since 2021-08-10
 */
public interface UserAccountService extends IService<UserAccount> {

    /**
     * 根据用户id，冻结指定的金额
     *
     * @param userId
     * @param fetchAmt
     */
    void freezeMoney(Integer userId, String fetchAmt);

    void subtractAmount(Integer userId, BigDecimal shopPrice, BigDecimal earnestMoney, BigDecimal shopFreight);
}
